package cn.ham.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @author 18号
 * @date 2016/12/20 15:23
 */
@Service
public class RibbonService {
    @Autowired
    private RestTemplate restTemplate;

    public String hello(){
        return restTemplate.getForObject("http://server-provider/1",String.class);
    }
}
